package edu.njfu.sas.model;

import java.util.Objects;

public class Student {
    private String stuNo;
    private String stuName;
    private String classes;
    private String gender;
    private String department;
    private String tel;
    private String dormNo;
    private String photoPath;

    public String getDormNo() {
        return dormNo;
    }

    public String getTel() {
        return tel;
    }

    public String getDepartment() {
        return department;
    }

    public String getGender() {
        return gender;
    }

    public String getPhotoPath() {
        return photoPath;
    }

    public String getClasses() {
        return classes;
    }

    public String getStuName() {
        return stuName;
    }

    public Student() {
    }

    public Student(String stuNo, String stuName, String classes, String gender, String department, String tel, String dormNo, String photoPath) {
        this.stuNo = stuNo;
        this.stuName = stuName;
        this.classes = classes;
        this.gender = gender;
        this.department = department;
        this.tel = tel;
        this.dormNo = dormNo;
        this.photoPath = photoPath;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuNo='" + stuNo + '\'' +
                ", stuName='" + stuName + '\'' +
                ", calsses='" + classes + '\'' +
                ", gender='" + gender + '\'' +
                ", department='" + department + '\'' +
                ", tel='" + tel + '\'' +
                ", dormNo='" + dormNo + '\'' +
                ", photoPath='" + photoPath + '\'' +
                '}';
    }

    public String getStuNo() {
        return stuNo;
    }

    @Override
    public int hashCode() {
        return Objects.hash(stuNo,stuName);
    }

    @Override
    public boolean equals(Object obj) {
        return true;
    }
}
